package com.example.mall.user.core.dao;

import com.example.mall.user.api.entity.ShopUser;
import com.example.mall.util.PageQueryUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopUserMapper {

    int insertSelective(ShopUser record);

    ShopUser selectByPrimaryKey(Long shopUserId);

    ShopUser selectByLoginName(String loginName);

    ShopUser selectByLoginNameAndPassword(@Param("loginName") String loginName, @Param("password") String password);

    int updateByPrimaryKeySelective(ShopUser record);

    List<ShopUser> findShopUserList(PageQueryUtil pageUtil);

    int getTotalShopUsers(PageQueryUtil pageUtil);

    int lockShopUserBatch(@Param("ids") Integer[] ids, @Param("lockStatus") int lockStatus);

}
